﻿#include "ApplicationCAD.h"

// Operator
#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"
#include "OperatorsInterface/GraphEventOperator.h"

ApplicationCAD::ApplicationCAD(int &argc, char **argv) : 
    AppFrame::FITKApplication(argc, argv)
{
    
}

bool ApplicationCAD::init()
{
    // 执行父类初始化。
    bool flag = AppFrame::FITKApplication::init();

    if (flag)
    {
        // 执行程序初始化。
        //@{      
        EventOper::GraphEventOperator* graphOper = FITKOPERREPO->getOperatorT<EventOper::GraphEventOperator>("GraphPreprocess");

        // 显示初始基准元素。
        if (graphOper)
        {
            graphOper->setDatumsVisibility(true);
        }

        // 初始化三维。
        if (graphOper)
        {
            graphOper->initialize3D();
        }
        //@}
    }

    return flag;
}
